"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
  const _easycom_uni_swiper_dot2 = common_vendor.resolveComponent("uni-swiper-dot");
  const _easycom_uni_card2 = common_vendor.resolveComponent("uni-card");
  (_easycom_uni_swiper_dot2 + _easycom_uni_card2)();
}
const _easycom_uni_swiper_dot = () => "../../node-modules/@dcloudio/uni-ui/lib/uni-swiper-dot/uni-swiper-dot.js";
const _easycom_uni_card = () => "../../node-modules/@dcloudio/uni-ui/lib/uni-card/uni-card.js";
if (!Math) {
  (_easycom_uni_swiper_dot + _easycom_uni_card)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "home",
  setup(__props) {
    common_vendor.useRouter();
    common_vendor.ref("@/source/image/dumping.png");
    let swiper_img = [
      {
        scr: "https://ts1.cn.mm.bing.net/th?id=OIP-C.s6dpfSeTuglKhh1UbDEZDQHaE8&w=306&h=204&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2",
        name: "干煸肉串"
      },
      {
        scr: "https://ts4.cn.mm.bing.net/th?id=ORMS.ba69f2f09fc41372de3934e0b54f688c&w=197&h=113&c=6&rs=2&o=6&pid=Wdp",
        name: "西兰花炒肉"
      },
      {
        scr: "https://tse3-mm.cn.bing.net/th/id/OIP-C.wc-YHMXctBt_Phdx6aEHMgHaEc?w=260&h=180&c=7&r=0&o=5&pid=1.7",
        name: "西兰花炒肉s"
      }
    ];
    let t_tab = [
      {
        src: "../../assets/dumping.png",
        name: "蒸煮"
      },
      {
        src: "../../assets/nudo.png",
        name: "爆炒"
      },
      {
        src: "../../assets/soup.png",
        name: "汤粥"
      },
      {
        src: "../../assets/ice.png",
        name: "全部"
      }
		];
		
    let scrollImage = [
      {
        id: 1,
        name: "白切鸡",
        src: "https://picx.zhimg.com/v2-cee47e1466402036a68ea3a2abec5a5f_1440w.jpg",
        duration: 25
      },
      {
        id: 2,
        name: "宫保鸡丁",
        src: "https://pic4.zhimg.com/v2-e25c66b96b1f4db169ac11cfc6d449c7_1440w.jpg",
        duration: 16
      },
      {
        id: 3,
        name: "酸汤鱼",
        src: "https://pic1.zhimg.com/v2-fdc93b1c1e4c024128762632845557c4_1440w.jpg",
        duration: 40
      },
      {
        id: 4,
        name: "荷兰豆炒木耳",
        src: "http://s1.cdn.jiaonizuocai.com/caipu/201803/1917/191750369588.jpg/MzYweDI1MA",
        duration: 30
      }
    ];
    return (_ctx, _cache) => {
      return {
        a: common_vendor.f(common_vendor.unref(swiper_img), (imge, k0, i0) => {
          return {
            a: imge.scr,
            b: common_vendor.t(imge.name),
            c: imge.name
          };
        }),
        b: common_vendor.f(common_vendor.unref(t_tab), (icon, k0, i0) => {
          return {
            a: icon.src,
            b: common_vendor.t(icon.name)
          };
        }),
        c: common_vendor.f(common_vendor.unref(scrollImage), (imgs, k0, i0) => {
          return {
            a: imgs.src,
            b: common_vendor.t(imgs.name),
            c: common_vendor.t(imgs.duration),
            d: imgs.id
          };
        }),
        d: common_vendor.p({
          title: "家常菜",
          extra: "更多 >"
        }),
        e: common_vendor.f(common_vendor.unref(scrollImage), (img, k0, i0) => {
          return {
            a: img.id,
            b: img.src
          };
        }),
        f: common_vendor.p({
          title: "日常小炒",
          extra: "更多 >"
        })
      };
    };
  }
});
wx.createPage(_sfc_main);
